package com.gitee.neuray.security.admin.api;

import com.gitee.neuray.security.admin.dto.AdminUser;
import com.gitee.neuray.security.admin.result.AdminListRestResponse;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.ResponseBody;

import java.util.List;

/**
 * @author: zhhongyu
 * @description: admin服务的公共组件，对外提供接口
 * @since: Create in 10:04 2020/3/13
 */
public interface AdminCommonServiceApi {
    @RequestMapping(value = "/api/org/treeUsers", method = RequestMethod.GET)
    @ResponseBody
    AdminListRestResponse<List<AdminUser>> treeUsers(@RequestParam String deptCode) throws Exception;
}
